package com.foreknow.service;

import com.foreknow.model.GuestBook;
import com.foreknow.util.Pagination;

import java.util.List;

public interface GuestBookService {
    public boolean gSave(GuestBook guestBook);

    public List<Object> gQuery();

    public boolean gUpdate(GuestBook guestBook,int id);

    public boolean gDelete(int id);

    public GuestBook gQueryById(int id);

    /**
     * 分页
     * @param pageSize 每页显示的记录数
     * @param pageNumber 当前页码
     * @return Pagination接口
     */
    public Pagination getByPage(int pageSize,int pageNumber);
}
